package com.cloud.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @author fuminwang
 * @Title: TestService
 * @Package com.cloud.platform.service
 * @Description: 负载测试
 * @date 2018/11/6下午4:04
 */
@Service
public class RibbonService {
    @Autowired
    RestTemplate restTemplate;

    public String getServiceTest(){
        return restTemplate.getForObject("http://USER-SERVER/",String.class);
    }
}
